﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Logo.command
{
    public class ForwardCommand : Command
    {
        private int distance;

        public ForwardCommand(LogoDraw logo, int distance)
        {
            this.logo = logo;
            this.distance = distance;
        }

        public override void Execute()
        {
            logo.AddLog("FORWARD " + distance);
            logo.Forward(distance);
        }
    }
}
